﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WindowsFormsApplication1
{
    class Student : Person
    {
        private long no; 	   	//学号：私有字段
        private int Score;        	//一门功课成绩：私有字段
        public Student(string n, int a, string s, long id, int e): base(n, a, s)
        {
            no = id;
            Score = e;
        }

        public string WriteStudentInfo()
        {
            return no.ToString() + name + Sex + Score.ToString() + WriteAge(); 
                       //此成员方法来自父类
        }
        new public string Display()
        {
            return base.Display()+no.ToString()+Score.ToString();
            
        }

    }
}
